//
//  Extension-UIImageView.swift
//  WeiBo
//
//  Created by macbook on 16/6/28.
//  Copyright © 2016年 buWangChuXing. All rights reserved.
//

import UIKit



extension UIImageView{

    //这里面只能写遍历构造函数
    
    convenience init(imageName:String){
    
        self.init(image:UIImage(named: imageName))
    }

}

//重写的这个方法 所以init shi ta 
//UIImageView = UIImageView(image: UIImage(named: "visitordiscover_feed_image_smallicon"))